package com.atldy.redis.controller;

import com.atldy.redis.service.DianaService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <h2> TODO </h2>
 *
 * @Author: li-dong-yang
 * @CreateTime: 2021-11-10 8:44
 */
@RestController
@RequestMapping("/diana")
@Api(value = "文章点赞", tags = "文章点赞")
public class DianaController {


    @Autowired
    private DianaService dianaService;

    @ApiOperation(value = "增加点赞数", notes = "增加点赞数")
    @GetMapping("/addDiana")
    public Long addDiana(Long id) {
        return dianaService.addDiana(id);
    }

}